package org.jeecg.modules.app.handler;

import com.alibaba.fastjson.JSONObject;
import org.jeecg.modules.app.body.ParamMap;
import org.jeecg.modules.app.utils.JsonUtil;

/**
 * @author tdkj
 */
public class ConfigHandler extends BaseHandler {


    private String token;

    public ConfigHandler(String token) {
        this.token = token;
    }

    @Override
    public JSONObject checkApi(ParamMap paramMap, String method) throws Exception {
        switch (method) {
            case "update":
                return update(paramMap);
            default:
                return JsonUtil.errorJson("请求地址无效");
        }
    }

    public JSONObject update(ParamMap paramMap) {
        return JsonUtil.successJson("");
    }
}
